package bean;

import java.util.Date;

import org.apache.commons.lang.time.DateFormatUtils;

public class AppCenterSdstockBean {
	private String nodeno;

	private String oilcan;

	private Date storetime;

	public String getNodeno() {
		return nodeno;
	}

	public void setNodeno(String nodeno) {
		this.nodeno = nodeno;
	}

	public String getOilcan() {
		return oilcan;
	}

	public void setOilcan(String oilcan) {
		this.oilcan = oilcan;
	}

	public Date getStoretime() {
		return storetime;
	}

	public void setStoretime(Date storetime) {
		this.storetime = storetime;
	}

	public boolean equals(OssMonitorTimeInventory obj) {
		String apptime = DateFormatUtils.format(storetime, "yyyy-MM-dd HH:mm:ss");
		String gktime = DateFormatUtils.format(obj.getStoreTime(), "yyyy-MM-dd HH:mm:ss");
		if (obj.getNodeNo().equals(nodeno) && obj.getOilCan().equals(oilcan) && apptime.equals(gktime)) {
			return true;
		}
		return false;
	}

}
